/*
 * creaNumeros.java
 * 
 * version 1.0
 * 
 * 11/21/2011
 * 
 * AOI
 */

package com.jcj.jumper;

import com.jcj.framework.gl.TextureRegion;

public class creaNumeros {
	public int numero;
	public TextureRegion ImagenNumero;
	public int speed;
	public int x; 
	public int posx;
	public int posy;
	public int speedy;
	
	public creaNumeros(int numero, TextureRegion ImagenNumero, int posx, int posy, int speed, int speedy) {
		this.posx = posx;
		this.posy = posy;
		this.ImagenNumero = ImagenNumero;
		this.speed = speed;
		this.numero = numero;
		this.x = 0;
	}
	
	public void nuevaposx() {
		posx = posx - speed;
		posy = posy - speedy;
	}
	
	public int getPosX() {
		return posx;
	}
	
	public int getPosY() {
		return posy;
	}
	
	public void setValores() {
		posx = (int) (Math.random() * 100) + 320;
		posy = (int) (Math.random() * 405) + 100;
		this.speed = (int) (Math.random() * 10) + 1;
		this.speedy = (int) (Math.random() * 5);
	}

}

